<?php namespace app\common\validate;
use app\api\controller\Validate;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/23
 * Time: 14:59
 */
class UserMoney extends Validate {
    protected $rule = [
        'money'  => 'require',
        'bank_type'  => 'require',

    ];
    protected $message = [
        'money.require' => '提现金额不能为空',
        'bank_type.require' => '银行卡类型不能为空',
    ];
    // 自定义验证规则
    protected function checkName($value,$rule,$data)
    {
        return $rule == $value ? true : '名称错误';
    }
}